<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="java.util.ArrayList" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

<%
String[] book={"哈利波特","九转成神","斗罗大陆"};
request.setAttribute("book",book);

ArrayList<Integer> list=new ArrayList<Integer>();

list.add(100);
list.add(200);
list.add(300);

request.setAttribute("list", list);

for(int i=0;i<3;i++){
	request.setAttribute("index", i);
%>

${book[index]}<br>
${list[index]}<br>
<%
}
%>

<%
request.setAttribute("a", "");
request.setAttribute("b",null);
%>
${1+2}
${2*3}
${4/2}
${4-2}
${"12"+"32" }
<!-- 判断对象是否为空 -->
${empty a}
${empty b}
<br>
(1>2and 3<3)=${1>2 and 3<3 }
<br>
(1>2 && 3<3)=${1>2 && 3<3 }
<br>
条件运算符:${3>2?3:4}
<br>
条件运算符:${empty b?"b等于null":"b不等于null" }
<br>

<br>

<br>

<br>


<br>

<br>


<br>

<br>

<br>

<br>

<br>


<br>

<br>


</body>
</html>